<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class About extends Controller {

    public function __construct() {
        parent::__construct();
//        echo 'we in about';
        Session::init();

        $loggeg = Session::get('loggedIn');
        if ($loggeg == false) {
            Session::Destroy();
            header('location: ' . URL . 'error');
            exit;
        }
    }

    public function index() {
        $this->view->render('about/index');
    }

    public function other() {

        $this->view->render('about/other');
//        echo 'we in about other';
//        require 'models/about_model.php';
//        $model = new About_Model();
    }

    public function prosess() {
        $id = $_POST['id'];
        $makul = $_POST['makul'];

//        $array = array();
//
//        array_push($array, $id);

//        var_dump($array);
        
        print_r($id);
        print_r($makul);
    }

}

?>
